package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备预警单对象 sys_device_early_warning
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
public class SysDeviceEarlyWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预警单id */
    @Excel(name = "预警单编号")
    private Long dewId;

    /** 变电站名称 */
    @Excel(name = "变电站名称")
    private String substationName;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String deviceName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String deviceModel;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 数量 */
    @Excel(name = "数量")
    private Integer amount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 交货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    /** 经手人 */
    @Excel(name = "经手人")
    private String overLeader;

    /** 交货地点 */
    @Excel(name = "交货地点")
    private String delivery;

    /** 申请人及联系方式 */
    @Excel(name = "申请人及联系方式")
    private String startLeader;

    /** 厂商名称 */
    @Excel(name = "厂商名称")
    private String supplierName;

    /** 用途 */
    @Excel(name = "用途")
    private String purpose;

    /** 紧急情况 */
    @Excel(name = "紧急情况")
    private String emergency;

    /** 是否停电 */
    @Excel(name = "是否停电")
    private String powerCut;

    /** 位置编号 */
    @Excel(name = "位置编号")
    private String locationNumber;

    public void setDewId(Long dewId) 
    {
        this.dewId = dewId;
    }

    public Long getDewId() 
    {
        return dewId;
    }
    public void setSubstationName(String substationName) 
    {
        this.substationName = substationName;
    }

    public String getSubstationName() 
    {
        return substationName;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceModel(String deviceModel) 
    {
        this.deviceModel = deviceModel;
    }

    public String getDeviceModel() 
    {
        return deviceModel;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setAmount(Integer amount) 
    {
        this.amount = amount;
    }

    public Integer getAmount() 
    {
        return amount;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setOverTime(Date overTime) 
    {
        this.overTime = overTime;
    }

    public Date getOverTime() 
    {
        return overTime;
    }
    public void setOverLeader(String overLeader) 
    {
        this.overLeader = overLeader;
    }

    public String getOverLeader() 
    {
        return overLeader;
    }
    public void setDelivery(String delivery) 
    {
        this.delivery = delivery;
    }

    public String getDelivery() 
    {
        return delivery;
    }
    public void setStartLeader(String startLeader) 
    {
        this.startLeader = startLeader;
    }

    public String getStartLeader() 
    {
        return startLeader;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setPurpose(String purpose) 
    {
        this.purpose = purpose;
    }

    public String getPurpose() 
    {
        return purpose;
    }
    public void setEmergency(String emergency) 
    {
        this.emergency = emergency;
    }

    public String getEmergency() 
    {
        return emergency;
    }
    public void setPowerCut(String powerCut) 
    {
        this.powerCut = powerCut;
    }

    public String getPowerCut() 
    {
        return powerCut;
    }
    public void setLocationNumber(String locationNumber) 
    {
        this.locationNumber = locationNumber;
    }

    public String getLocationNumber() 
    {
        return locationNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dewId", getDewId())
            .append("substationName", getSubstationName())
            .append("deviceName", getDeviceName())
            .append("deviceModel", getDeviceModel())
            .append("unit", getUnit())
            .append("amount", getAmount())
            .append("startTime", getStartTime())
            .append("overTime", getOverTime())
            .append("overLeader", getOverLeader())
            .append("delivery", getDelivery())
            .append("startLeader", getStartLeader())
            .append("supplierName", getSupplierName())
            .append("purpose", getPurpose())
            .append("emergency", getEmergency())
            .append("powerCut", getPowerCut())
            .append("locationNumber", getLocationNumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
